package com.pojo;

import java.sql.Date;

public class User {
    private int id;
    private int userCode;
    private String userName;
    private boolean gender;
    private String phone;
    private String userRoleName;
    private String userPassword;
    private String ruserPassword;
    private String address;
    private Date birthday;
    public User() {
    }

    public User(String userName, String userPassword) {
        this.userName = userName;
        this.userPassword = userPassword;
    }

    public User(int id, int userCode, String userName, boolean gender, String phone, String userRoleName, String userPassword, String ruserPassword, String address, Date birthday) {
        this.id = id;
        this.userCode = userCode;
        this.userName = userName;
        this.gender = gender;
        this.phone = phone;
        this.userRoleName = userRoleName;
        this.userPassword = userPassword;
        this.ruserPassword = ruserPassword;
        this.address = address;
        this.birthday = birthday;
    }

    public User(int userCode, String userName, boolean gender, String phone, String userPassword, String ruserPassword, String address, String userRoleName, Date birthday) {
        this.userCode = userCode;
        this.userName = userName;
        this.gender = gender;
        this.phone = phone;
        this.userPassword = userPassword;
        this.ruserPassword = ruserPassword;
        this.address = address;
        this.userRoleName = userRoleName;
        this.birthday = birthday;
    }

    public User(int id, int userCode, String userName, boolean gender, String phone, String userRoleName) {
        this.id = id;
        this.userCode = userCode;
        this.userName = userName;
        this.gender = gender;
        this.phone = phone;
        this.userRoleName = userRoleName;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserCode() {
        return userCode;
    }

    public void setUserCode(int userCode) {
        this.userCode = userCode;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public boolean isGender() {
        return gender;
    }

    public void setGender(boolean gender) {
        this.gender = gender;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getUserRoleName() {
        return userRoleName;
    }

    public void setUserRoleName(String userRoleName) {
        this.userRoleName = userRoleName;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public String getRuserPassword() {
        return ruserPassword;
    }

    public void setRuserPassword(String ruserPassword) {
        this.ruserPassword = ruserPassword;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", userCode=" + userCode +
                ", userName='" + userName + '\'' +
                ", gender=" + gender +
                ", phone='" + phone + '\'' +
                ", userRoleName='" + userRoleName + '\'' +
                ", userPassword='" + userPassword + '\'' +
                ", ruserPassword='" + ruserPassword + '\'' +
                ", address='" + address + '\'' +
                ", birthday=" + birthday +
                '}';
    }
}
